﻿<%@ Control Language="C#"  %>
<script runat="server">
    private int Item_Lang = 1;

    protected void Page_Load(object sender, EventArgs e)
    {
        Item_Lang = Utils.GetQueryString("lang",1);
        Agents agents = new Agents();
        Repeater_List.DataSource = agents.List(Item_Lang);
        Repeater_List.DataBind();
    }
</script>
<table class="datas">
<thead>
    <td></td>
    <td>Num</td>
    <td><%=Lang.Show("UserName") %></td>
    <td><%=Lang.Show("Zone")%></td>
    <td><%=Lang.Show("Address")%></td>
    <td><%=Lang.Show("UserPhone")%></td>
    <td><%=Lang.Show("Order")%></td>
    <td><%=Lang.Show("Create_Time")%></td>
    <td></td>
    <td></td>
    <td></td>
</thead>
<tbody>
<asp:Repeater runat="server" ID="Repeater_List">
<ItemTemplate>
    <tr id="TR<%#Eval("Agent_Id") %>">
        <td><img src="../DataFile/Agents/<%#Eval("Create_Time","{0:yyyyMM/ddHHmmss}")%>.jpg" /></td>
        <td><code> . <%#Eval("Agent_Id") %>  </code></td>
        <td><%#Eval("Agent_Name") %></td>
        <td><%#Eval("Agent_Site")%></td>
        <td><%#Eval("Agent_Address")%></td>
        <td><code><%#Eval("Agent_Tel")%></code></td>
        <td><code><%#Eval("Orders")%></code></td>
        <td><code><%#Eval("Create_Time","{0:yyyy/MM/dd<br>HH-mm-ss}")%></code></td>
        <td><a href="Ploting.aspx?id=<%#Eval("Agent_Id") %>&lang=<%=Item_Lang %>&obj_typ=3&isreturn=1"><%=Lang.Show("CoverPage")%></a></td>
        <td><a href="Agents-Edit.aspx?id=<%#Eval("Agent_Id") %>"><%=Lang.Show("Edit") %></a></td>
        <td><a href="javascript:Del(<%#Eval("Agent_Id") %>,3)" class="del"><%=Lang.Show("Del") %></a></td>
    </tr>
</ItemTemplate>
</asp:Repeater>
</tbody>
</table>
